<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Body_Health_Sensor: BodyHealthSensor.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Body_Health_Sensor
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">BodyHealthSensor.h 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;Arduino.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
BodyHealthSensor.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="BodyHealthSensor_8h__incl.png" border="0" usemap="#aBodyHealthSensor_8h" alt=""/></div>
<map name="aBodyHealthSensor_8h" id="aBodyHealthSensor_8h">
<area shape="rect" title=" " alt="" coords="5,5,159,32"/>
<area shape="rect" title=" " alt="" coords="40,80,124,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="BodyHealthSensor_8h__dep__incl.png" border="0" usemap="#aBodyHealthSensor_8hdep" alt=""/></div>
<map name="aBodyHealthSensor_8hdep" id="aBodyHealthSensor_8hdep">
<area shape="rect" title=" " alt="" coords="13,5,166,32"/>
<area shape="rect" href="BodyHealthSensor_8cpp.html" title=" " alt="" coords="5,80,173,107"/>
</map>
</div>
</div>
<p><a href="BodyHealthSensor_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structBodyHeathSensor.html">BodyHeathSensor</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">human body health monitoring sensor data structure(totally, 16 bytes)  <a href="structBodyHeathSensor.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ab077fa1127453be2bd9d4c3c8a768fa7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#ab077fa1127453be2bd9d4c3c8a768fa7">uint8_t</a>&#160;&#160;&#160;unsigned char</td></tr>
<tr class="separator:ab077fa1127453be2bd9d4c3c8a768fa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a301c610e29af66c2e97347497d728d46"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#a301c610e29af66c2e97347497d728d46">_BODY_HEALTH_SERIAL</a>&#160;&#160;&#160;Serial1</td></tr>
<tr class="memdesc:a301c610e29af66c2e97347497d728d46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Use Serial1 on Arduino GIGIA R1  <a href="BodyHealthSensor_8h.html#a301c610e29af66c2e97347497d728d46">更多...</a><br /></td></tr>
<tr class="separator:a301c610e29af66c2e97347497d728d46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae35eda22b5a842d1a1e44966a645ce6c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#ae35eda22b5a842d1a1e44966a645ce6c">SEND_START_SEQ</a>()</td></tr>
<tr class="separator:ae35eda22b5a842d1a1e44966a645ce6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af001f6225fcaa6c2c2dc8b08f52a57cb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#af001f6225fcaa6c2c2dc8b08f52a57cb">SEND_END_SEQ</a>()</td></tr>
<tr class="separator:af001f6225fcaa6c2c2dc8b08f52a57cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a96f2f6dbd3b5d7f3436ff15ded38ac24"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#a96f2f6dbd3b5d7f3436ff15ded38ac24">isAvailable</a> (<a class="el" href="structBodyHeathSensor.html">BodyHeathSensor</a> bhs)</td></tr>
<tr class="separator:a96f2f6dbd3b5d7f3436ff15ded38ac24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cc5bbee1a27b484287fcaac801e65f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#a5cc5bbee1a27b484287fcaac801e65f3">myBodyHealthSensorSetup</a> ()</td></tr>
<tr class="memdesc:a5cc5bbee1a27b484287fcaac801e65f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">setup the config and be used in .ino setup()  <a href="BodyHealthSensor_8h.html#a5cc5bbee1a27b484287fcaac801e65f3">更多...</a><br /></td></tr>
<tr class="separator:a5cc5bbee1a27b484287fcaac801e65f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d9009b25da2ccd9dad013eba22d7969"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#a0d9009b25da2ccd9dad013eba22d7969">myBodyHeathSensorLoop</a> ()</td></tr>
<tr class="memdesc:a0d9009b25da2ccd9dad013eba22d7969"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the data from sensor and be used in .ino loop()  <a href="BodyHealthSensor_8h.html#a0d9009b25da2ccd9dad013eba22d7969">更多...</a><br /></td></tr>
<tr class="separator:a0d9009b25da2ccd9dad013eba22d7969"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a028af8c275b3a04c5dbf7160a3e918cf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="BodyHealthSensor_8h.html#a028af8c275b3a04c5dbf7160a3e918cf">sendStartSeqFlag</a> = true</td></tr>
<tr class="memdesc:a028af8c275b3a04c5dbf7160a3e918cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">use for func myBodyHealthSensorLoop()  <a href="BodyHealthSensor_8h.html#a028af8c275b3a04c5dbf7160a3e918cf">更多...</a><br /></td></tr>
<tr class="separator:a028af8c275b3a04c5dbf7160a3e918cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a301c610e29af66c2e97347497d728d46" name="a301c610e29af66c2e97347497d728d46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a301c610e29af66c2e97347497d728d46">&#9670;&nbsp;</a></span>_BODY_HEALTH_SERIAL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _BODY_HEALTH_SERIAL&#160;&#160;&#160;Serial1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Use Serial1 on Arduino GIGIA R1 </p>
<ul>
<li>Serial1 pins: 0 -&gt; RX , 1 &lt;- TX</li>
<li>Serial2 pins: 19 -&gt; RX1, 18 &lt;- TX1</li>
<li>Serial3 pins: 17 -&gt; RX2, 16 &lt;- TX2</li>
<li>Serial4 pins: 15 -&gt; RX3, 14 -&gt; TX3 </li>
</ul>

</div>
</div>
<a id="af001f6225fcaa6c2c2dc8b08f52a57cb" name="af001f6225fcaa6c2c2dc8b08f52a57cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af001f6225fcaa6c2c2dc8b08f52a57cb">&#9670;&nbsp;</a></span>SEND_END_SEQ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SEND_END_SEQ</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    ;                       \</div>
<div class="line">    {                       \</div>
<div class="line">        _BODY_HEALTH_SERIAL.write(0xA5); \</div>
<div class="line">        _BODY_HEALTH_SERIAL.write(0xA2); \</div>
<div class="line">    }</div>
</div><!-- fragment --><p >send end sequence </p>

</div>
</div>
<a id="ae35eda22b5a842d1a1e44966a645ce6c" name="ae35eda22b5a842d1a1e44966a645ce6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae35eda22b5a842d1a1e44966a645ce6c">&#9670;&nbsp;</a></span>SEND_START_SEQ</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SEND_START_SEQ</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    ;                       \</div>
<div class="line">    {                       \</div>
<div class="line">        _BODY_HEALTH_SERIAL.write(0xA5); \</div>
<div class="line">        _BODY_HEALTH_SERIAL.write(0xA1); \</div>
<div class="line">    }</div>
</div><!-- fragment --><p >send start sequence </p>

</div>
</div>
<a id="ab077fa1127453be2bd9d4c3c8a768fa7" name="ab077fa1127453be2bd9d4c3c8a768fa7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab077fa1127453be2bd9d4c3c8a768fa7">&#9670;&nbsp;</a></span>uint8_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define uint8_t&#160;&#160;&#160;unsigned char</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a96f2f6dbd3b5d7f3436ff15ded38ac24" name="a96f2f6dbd3b5d7f3436ff15ded38ac24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96f2f6dbd3b5d7f3436ff15ded38ac24">&#9670;&nbsp;</a></span>isAvailable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool isAvailable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structBodyHeathSensor.html">BodyHeathSensor</a>&#160;</td>
          <td class="paramname"><em>bhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >check if the head of <a class="el" href="structBodyHeathSensor.html" title="human body health monitoring sensor data structure(totally, 16 bytes)">BodyHeathSensor</a> is available </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname"><a class="el" href="structBodyHeathSensor.html" title="human body health monitoring sensor data structure(totally, 16 bytes)">BodyHeathSensor</a></td><td>bhs </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>[true]: available, [false]: unavailable </dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="BodyHealthSensor_8h_a96f2f6dbd3b5d7f3436ff15ded38ac24_icgraph.png" border="0" usemap="#aBodyHealthSensor_8h_a96f2f6dbd3b5d7f3436ff15ded38ac24_icgraph" alt=""/></div>
<map name="aBodyHealthSensor_8h_a96f2f6dbd3b5d7f3436ff15ded38ac24_icgraph" id="aBodyHealthSensor_8h_a96f2f6dbd3b5d7f3436ff15ded38ac24_icgraph">
<area shape="rect" title=" " alt="" coords="244,5,337,32"/>
<area shape="rect" href="BodyHealthSensor_8cpp.html#a0d9009b25da2ccd9dad013eba22d7969" title="get the data from sensor and be used in .ino loop()" alt="" coords="5,5,196,32"/>
</map>
</div>

</div>
</div>
<a id="a5cc5bbee1a27b484287fcaac801e65f3" name="a5cc5bbee1a27b484287fcaac801e65f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cc5bbee1a27b484287fcaac801e65f3">&#9670;&nbsp;</a></span>myBodyHealthSensorSetup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void myBodyHealthSensorSetup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>setup the config and be used in .ino setup() </p>

</div>
</div>
<a id="a0d9009b25da2ccd9dad013eba22d7969" name="a0d9009b25da2ccd9dad013eba22d7969"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d9009b25da2ccd9dad013eba22d7969">&#9670;&nbsp;</a></span>myBodyHeathSensorLoop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void myBodyHeathSensorLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the data from sensor and be used in .ino loop() </p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="BodyHealthSensor_8h_a0d9009b25da2ccd9dad013eba22d7969_cgraph.png" border="0" usemap="#aBodyHealthSensor_8h_a0d9009b25da2ccd9dad013eba22d7969_cgraph" alt=""/></div>
<map name="aBodyHealthSensor_8h_a0d9009b25da2ccd9dad013eba22d7969_cgraph" id="aBodyHealthSensor_8h_a0d9009b25da2ccd9dad013eba22d7969_cgraph">
<area shape="rect" title="get the data from sensor and be used in .ino loop()" alt="" coords="5,5,196,32"/>
<area shape="rect" href="BodyHealthSensor_8cpp.html#a96f2f6dbd3b5d7f3436ff15ded38ac24" title=" " alt="" coords="244,5,337,32"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a028af8c275b3a04c5dbf7160a3e918cf" name="a028af8c275b3a04c5dbf7160a3e918cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a028af8c275b3a04c5dbf7160a3e918cf">&#9670;&nbsp;</a></span>sendStartSeqFlag</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool sendStartSeqFlag = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>use for func myBodyHealthSensorLoop() </p>
<p >determine whether to <a class="el" href="BodyHealthSensor_8h.html#ae35eda22b5a842d1a1e44966a645ce6c">SEND_START_SEQ()</a> in ...Loop() </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
